import {createStore, applyMiddleware} from 'redux'
import thunk from 'redux-thunk'
import {comments} from './reducers'


//生成store对象
//应用上异步的中间件
const store = createStore(comments, applyMiddleware(thunk));

export default store